package com.ruoyi.city.service.impl;

import com.ruoyi.city.domain.City;
import com.ruoyi.city.mapper.CityMapper;
import com.ruoyi.city.service.ICityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CityServiceImpl implements ICityService {

    @Autowired
    private CityMapper cityMapper;

    @Override
    public List<City> selectCityList() {
        return cityMapper.selectCityList();
    }

    @Override
    public City selectCityById(Long id) {
        return cityMapper.selectCityById(id);
    }

    @Override
    public City selectCityByCode(String cityCode) {
        return cityMapper.selectCityByCode(cityCode);
    }

    @Override
    public int insertCity(City city) {
        return cityMapper.insertCity(city);
    }

    @Override
    public int updateCity(City city) {
        return cityMapper.updateCity(city);
    }

    @Override
    public int deleteCityByIds(String ids) {
        return cityMapper.deleteCityByIds(ids);
    }
}
